<template>
  <el-button   v-bind="$attrs" v-on="$listeners"  @click="checkButton">{{fieldValue}}</el-button>
</template>

<script>

  export default {
    props: {
      value: {
        type: [String,Number],
       
      },
      prop: {
        type: [String,Number]
      },
      txtValue: {
        type: [Object,Array],
        default() {
          return {}
        }
      }
    },
    computed: {
      fieldValue: {
        get() {
          // console.log(this.$attrs,this.value,'--------------')
          return this.value
        },
        set(val) {
          this.$emit('input', val)
        }
      }
    },
    methods: {
      checkButton(){
         this.$emit('buttonClick',this.$attrs);
      }
    }
  }
</script>
